<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <style>
        #dialog::backdrop {
            background-color: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(1px);
        }
        form{
            text-align: end;
        }
    </style>
</head>
<body>

<dialog id="dialog">
    <div class="win">
        <h2>admin login page</h2>
        <form th:action="@{/login}" method="post">
            <div><label> Username : <input type="text" name="username"/> </label></div>
            <div><label> Password : <input type="password" name="password"/> </label></div>
            <div><input type="submit" value="Sign In"/></div>
        </form>
    </div>
</dialog>
<script>
    const dialog = document.getElementById('dialog');
    dialog.show()
</script>
</body>
</html>